@use '../../style' as theme;

$icon-prefix-cls: #{theme.$iconfont-css-prefix};

@keyframes loadingCircle {
  to {
      transform: rotate(360deg)
  }
}

.#{$icon-prefix-cls} {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizelegibility;
  color: #8F95A3;

  &-spin, &-spin::before {
    display: inline-block;
    animation: loadingCircle 2s infinite linear;
  }

  // 小号尺寸按钮
  &-size-small {
    font-size: theme.$small-font-size + 4;
  }

  // 中号尺寸按钮
  &-size-middle {
    font-size: theme.$middle-font-size + 4;
  }

  // 大号尺寸按钮
  &-size-large {
    font-size: theme.$large-font-size + 4;
  }

  &.is-disabled {
    cursor: not-allowed;
  }

  &.is-click {
    &:hover {
      color:#303133;
      cursor: pointer;
    }
  }
}
